import {
  Base
} from 'base.js';

class ActivityModel extends Base {
  constructor() {
    super();
  }
  /** 
   * banner是否展示
   */
  activityInstantWhetherShow(data) {
    return this.promiseRequest('/wechat/marketing/activity/instant/whetherShow', data, false, true)
  }
  /** 
   * 限时抢购详情
   */
  activityInstantDetailt(data) {
    return this.promiseRequest('/wechat/marketing/activity/instant/detail', data)
  }
  /** 
   * 万券齐发领券
   */
  giftTake(data) {
    return this.promiseRequest('/wechat/marketing/activity/instant/gift/take', data)
  }

  // 金币排行榜详情
  goldDetail(data) {
    return this.promiseRequest('/wechat/marketing/activity/gold/detail', data, false, true)
  }
  // 金币排行榜查询
  goldRankView(data) {
    return this.promiseRequest('/wechat/marketing/activity/gold/ranking/view', data)
  }
  // 金币排行榜自己
  goldRankSelf(data) {
    return this.promiseRequest('/wechat/marketing/activity/gold/ranking/self', data, false, true)
  }
  // 金币排行榜飞豆资产
  goldRankBean(data) {
    return this.promiseRequest('/wechat/marketing/activity/gold/ticket', data)
  }
  // 金币排行榜套餐限制
  goldRankLimit(data) {
    return this.promiseRequest('/wechat/marketing/activity/gold/package/limit', data, false, true)
  }
  // 金币排行榜套餐兑换
  goldRankExchange(data) {
    return this.promiseRequest('/wechat/marketing/activity/gold/package/exchange', data)
  }
  // 会员已点亮省份信息
  getMedalLightProList(data) {
    return this.promiseRequest('/wechat/activity/badge/member/lighted/list', data)
  }
  // 查询全国地图省份门店对应关系
  getMedalProList(data) {
    return this.promiseRequest('/wechat/activity/badge/province/mapping', data)
  }
  // 周年徽章活动详情
  getMedalDetail(data) {
    return this.promiseRequest('/wechat/activity/badge/detail', data)
  }
  // 集徽章资产概览
  getMedalAsset(data) {
    return this.promiseRequest('/wechat/activity/badge/member/summary', data)
  }
  // 粉尘抽奖模块是否展示
  dustModuleShow(data) {
    return this.promiseRequest('/wechat/marketing/activity/badge/member/dust/lottery/show', data)
  }
  // 粉尘抽奖
  dustAward(data) {
    return this.promiseRequest('/wechat/marketing/activity/badge/member/dust/lottery', data)
  }
  // 粉尘兑换
  dustExchange(data) {
    return this.promiseRequest('/wechat/marketing/activity/badge/member/dust/exchange', data)
  }
  // 重复徽章展示
  getRepeatMedal(data) {
    return this.promiseRequest('/wechat/activity/badge/member/badge_show', data)
  }
  // 重复徽章粉碎
  dustRepeatMedal(data) {
    return this.promiseRequest('/wechat/activity/badge/member/badge_smash', data)
  }
  // 集徽章活动查询会员获奖列表
  getAwardMedalList(data) {
    return this.promiseRequest('/wechat/activity/badge/member/award/list', data)
  }
  // 会员的全国排名信息查询
  getMedalMemberRank(data) {
    return this.promiseRequest('/wechat/activity/badge/member/rank/info', data, false, true)
  }
  // 查询集徽章排行榜信息
  getMedalRankList(data) {
    return this.promiseRequest('/wechat/activity/badge/rank/list', data)
  }
  // 查询点亮排行榜
  getLightList(data) {
    return this.promiseRequest('/wechat/activity/badge/light/rank', data)
  }
  // 查看自身点亮进度
  getLightProgress(data) {
    return this.promiseRequest('/wechat/activity/badge/member/light/progress', data)
  }
  // 查看中奖名单
  getLightWinners(data) {
    return this.promiseRequest('/wechat/activity/badge/member/light/winners', data)
  }
  // 砍价商品详情
  bargainGoodsDetail(data) {
    return this.promiseRequest('/wechat/bargain/applet/goods/detail', data)
  }
  // 帮砍记录查询
  bargainGoodsRecord(data) {
    return this.promiseRequest('/wechat/bargain/applet/goods/record', data)
  }
  // 会员砍价专区查询接口
  bargainMemberDetailUnlogin(data) {
    return this.promiseRequest('/wechat/bargain/applet/member/detail/unlogin', data)
  }
  bargainMemberDetailLogin(data) {
    return this.promiseRequest('/wechat/bargain/applet/member/detail/login', data)
  }
  // 小程序查询门店砍价活动
  bargainActivityQuery(data) {
    return this.promiseRequest('/wechat/bargain/applet/activity/query', data)
  }
  // 砍一刀
  bargainGoodsReduce(data) {
    return this.promiseRequest('/wechat/bargain/applet/goods/reduce', data)
  }
  // 立即下单
  bargainCreate(data) {
    return this.promiseRequest('/wechat/order/v2/bargain/create', data)
  }
  // 订单详情查询
  userOrderDetail(data) {
    return this.promiseRequest('/wechat/mall/applet/user/order/detail', data)
  }
  // 捕鱼海岛礼品兑换
  redeemCodeObtain(data) {
    return this.promiseRequest('/wechat/redeem_code/obtain', data)
  }
  // 查看瓜分金币活动排行榜
  appletRank(data) {
    return this.promiseRequest('/wechat/partition/applet/rank', data)
  }
  // 查看瓜分游戏币活动详情
  appletDetail(data) {
    return this.promiseRequest('/wechat/partition/applet/detail', data)
  }
  // 瓜分游戏币活动飞豆兑换碎片
  appletExchange(data) {
    return this.promiseRequest('/wechat/partition/applet/exchange', data)
  }
  // 查询瓜分游戏币会员获得实物奖品
  appletAwarde(data) {
    return this.promiseRequest('/wechat/partition/applet/award', data)
  }
  // 获取手游礼包列表
  getBullGameList(data) {
    return this.promiseRequest('/wechat/third_gift_sy/list', data, false, true)
  }
  // 兑换手游礼包
  exchangeBullGame(data) {
    return this.promiseRequest('/wechat/third_gift_sy/exchange', data)
  }
};
export {
  ActivityModel
}